"""
@Time: 2020/12/17 上午 9:51
@Author: jinzhuan
@File: ace2005.py
@Desc: 
"""
from cognlp.io.loader.ee.ace2005 import ACE2005Loader
from cognlp.io.processor.ee.ace2005 import ACE2005TriggerProcessor
from cognlp.core.datableset import DataTableSet
from cognlp import *

loader = ACE2005Loader()
train_data, dev_data, test_data = loader.load_all('../../../../cognlp/data/ee/ace2005/data')
vocabulary = Vocabulary(padding=None)
vocabulary.add_word_lst(loader.get_argument_labels())
vocabulary.build_vocab()
vocabulary.save('../../../../cognlp/data/ee/ace2005/new_argument_vocabulary.txt')
print(1)
